package com.dfrobot.demo.domain.entity;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;

@Data
@Table(name = "affiliate")
public class Affiliate {
    @Id
    @Column(name = "affiliate_id")
    private Integer affiliateId;

    private String firstname;

    private String lastname;

    private String email;

    private String telephone;

    private String fax;

    private String password;

    private String salt;

    private String company;

    private String website;

    @Column(name = "address_1")
    private String address1;

    @Column(name = "address_2")
    private String address2;

    private String city;

    private String postcode;

    @Column(name = "country_id")
    private Integer countryId;

    @Column(name = "zone_id")
    private Integer zoneId;

    private String code;

    private BigDecimal commission;

    private String tax;

    private String payment;

    private String cheque;

    private String paypal;

    @Column(name = "bank_name")
    private String bankName;

    @Column(name = "bank_branch_number")
    private String bankBranchNumber;

    @Column(name = "bank_swift_code")
    private String bankSwiftCode;

    @Column(name = "bank_account_name")
    private String bankAccountName;

    @Column(name = "bank_account_number")
    private String bankAccountNumber;

    private String ip;

    private Boolean status;

    private Boolean approved;

    @Column(name = "date_added")
    private Date dateAdded;
}